package ai.esc.speedy.admin.user.domain.commandmodel;

import ai.esc.speedy.admin.user.domain.aggregate.AppUserAggregate;
import org.axonframework.commandhandling.CommandHandler;
import org.axonframework.modelling.command.Repository;
import org.springframework.stereotype.Service;

@Service
public class    AppUserCommandHandler {

//    private final Repository<AppUserAggregate> appUserAggregateRepository;
//
//    public AppUserCommandHandler(Repository<AppUserAggregate> appUserAggregateRepository) {
//        this.appUserAggregateRepository = appUserAggregateRepository;
//    }


//    @CommandHandler
//    public void handle(RedeemCardCommand cmd) {
//        appUserAggregateRepository.load(cmd.getCardId()) // 2.
//                .execute(giftCard -> giftCard.handle(cmd)); // 3.
//    }
}
